package com.woniu.dao;

import com.woniu.pojo.HotListDetail;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface HotListDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(HotListDetail record);

    int insertSelective(HotListDetail record);

    HotListDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(HotListDetail record);

    int updateByPrimaryKey(HotListDetail record);
@Select("select user_name from users u,hotlist_detail d where u.id=d.user_id and d.hot_id=#{hotId}")
    List<String> selectHotPerson(Long hotId);
}